﻿@model MyWorkBlogMVC.Models.UserBlogModel
@{
    ViewBag.Title = "UserDetails";
}
@Styles.Render("~/Content/css")
<link href="~/Content/PageContent.css" rel="stylesheet" />
<div class="jumbotron">
    <img src="~/Content/blogme.PNG" />
</div>

<div class="body_wrapper">

    <div class="postContent">
        <h2>Welcome @Model.Username</h2>
        <div>
            Blog name: @Model.Name<br/>
            Country: @Model.Country
            <h2>Blog description</h2>
            <p>@Model.Description</p>
        </div>
        <div>
            <ul>
                @foreach (var post in Model.BlogPosts)
                {
                    <li>@Html.ActionLink(@post.PostTitle, "EditUserPostWithComment", new { Id = post.BlogPostId })</li>
                }
            </ul>
            <div class="button_left">@Html.ActionLink("Edit your information", "BlogEdit", "User")</div>
            <div class="button_right">@Html.ActionLink("Create Post", "CreateUserPost", "User")</div>
        </div>
        
           
        

    </div>
</div>
